package com.guandi.geekbrowser.primary.entity;

import javax.persistence.*;

@Entity
@Table(name = "user")
public class User {

    @Id
    private String id;
    @Column(unique = true,length = 10)
    private String name;
    @Column(length = 15)
    private String password;
    @Column(name = "active_code")
    private String activeCode;
    @Column(name = "val_active_code")
    private String valActiveCode;
    @Column(name = "machine_code")
    private String machineCode;
    @Transient
    private String roleName;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getMachineCode() {
        return machineCode;
    }

    public void setMachineCode(String machineCode) {
        this.machineCode = machineCode;
    }

    public String getValActiveCode() {
        return valActiveCode;
    }

    public void setValActiveCode(String valActiveCode) {
        this.valActiveCode = valActiveCode;
    }

    public String getActiveCode() {
        return activeCode;
    }

    public void setActiveCode(String activeCode) {
        this.activeCode = activeCode;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
